package me.tianle.login.service;

import me.tianle.login.mapper.UserMapper;
import me.tianle.login.model.Permission;
import me.tianle.login.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findByUsername(String username) {
        return userMapper.findByUsername(username);
    }

    @Override
    public User findRole(Integer uid) {
        return userMapper.findRole(uid);
    }

    @Override
    public List<Permission> findPermission(Integer uid) {
        return userMapper.findPermission(uid);
    }


}
